<!DOCTYPE html>
<!-- saved from url=(0055)http://www.taoyinyin.com/index.php/home/sign/login.html -->
<html
	class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms no-csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths"
	lang="en" style="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>云印社 | 在线打印</title>
<link rel="stylesheet" href="/css/foundation.css">
<link rel="stylesheet" type="text/css" href="/css/self.css">
<link rel="stylesheet" type="text/css" href="/css/sign.css">
<script src="./淘印印   在线打印_files/modernizr.js"></script>
<meta class="foundation-data-attribute-namespace">
<meta class="foundation-mq-xxlarge">
<meta class="foundation-mq-xlarge">
<meta class="foundation-mq-large">
<meta class="foundation-mq-medium">
<meta class="foundation-mq-small">
<style></style>
<meta class="foundation-mq-topbar">
</head>
<body>
<script language="javascript" type="text/javascript">
function verify(){
	var a=$("#mobile").val();
	var postdata = "phonenumber=" + a;
	$.ajax({ 
		type: "get", 		//数据提交方式，post，get
		url: "/controller/verify", 	//获取验证码的后台代码入口
		async: true, 
		data: postdata, 
		dataType: "text",	//返回数据的格式
		success: function(data) {
			alert(data);
		}, 
		error: function(e) {
			alert("网络或服务器错误！");
		}
	});
}
</script>
	<nav class="top-bar" data-topbar="" role="navigation">
		<ul class="title-area">
			<li class="name">
				<h1>
					<h1><a href="print">云印社</a></h1>
				</h1>
			</li>
			<li class="toggle-topbar menu-icon"><a href="login"><span>Menu</span></a></li>
		</ul>

		<section class="top-bar-section">
			<ul class="right">
				<li class="active"><a href="register">立即注册</a></li>
				<li><a href="login">用户登录</a></li>
			</ul>
			<ul class="left">
				<li class="divider"></li>
				<li><a href="#">主页</a></li>
				<li class="divider"></li>
				<li><a href="#">文库</a></li>
				<li class="divider"></li>

			</ul>
		</section>
	</nav>

	<section class="register-box">
		<h4>用户注册</h4>
			<p>
		        <span class="-label">&nbsp;</span>
		        <span class="-error-msg">${unameMsg!}</span>
		    </p>
		
		<form action="registerPost" method="post">
			<div class="row collapse">
				<div class="small-3 large-3 columns">
					<span class="prefix">手机号</span>
				</div>
				<div class="small-9 large-9 columns">
					<input type="text" name="mobile" id="mobile" placeholder="输入你的手机号">
				</div>

				<div class="small-9 large-9 columns">
				<a onclick="verify()">获取验证码</a>
				</div>
			</div>
			<div class="row collapse">
				<div class="small-3 large-3 columns">
					<span class="prefix">验证码</span>
				</div>
				<div class="small-9 large-9 columns">
					<input type="text" name="yanzhengma">
				</div>
			</div>
			<div class="row collapse">
				<div class="small-3 large-3 columns">
					<span class="prefix">用户名</span>
				</div>
				<div class="small-9 large-9 columns">
					<input type="text" name="username" placeholder="用户名来登录">
				</div>
			</div>
			<div class="row collapse">
				<div class="small-3 large-3 columns">
					<span class="prefix">密码</span>
				</div>
				<div class="small-9 large-9 columns">
					<input type="password" name="password" placeholder="输入至少6位密码">
				</div>
			</div>
			<div class="row collapse">
				<div class="small-3 large-3 columns">
					<span class="prefix">重复密码</span>
				</div>
				<div class="small-9 large-9 columns">
					<input type="password" name="repassword" placeholder="确认密码">
				</div>
			</div>
			<div class="row collapse">
				<div class="small-3 large-3 columns">
					<span class="prefix">学校</span>
				</div>
				<div class="small-9 large-9 columns">
					 <select name="school">
                         <%for(school in schools){%>
                             <option value="${school.school_id}" selected>${school.school_name}</option>
                         <%}%>
                    </select>
				</div>
			</div>
			<div class="row collapse">
				<div class="small-9 large-9 columns"></div>
				<div class="small-3 large-3 columns">
					<button type="submit" class="button tiny regbtn">提交</button>
				</div>
			</div>
		</form>
	</section>

	<%include("/footer.html"){} %>
	<script src="/js/jquery.js"></script>
	<script src="/js/foundation.min.js"></script>
	<script>
		$(document).foundation();
	</script>
	<script type="text/javascript" src="/js/index_2.js"></script>

</body>
</html>